package com.xxzuibang.day6;

public class Demo02 {

    /*
    使用方式3-静态初始化
    语法：
    数据类型 数组名[]={元素值1,元素值2.....};
     */

    public static void main(String[] args) {
        int a[] = {2, 3, 4, 5, 6, 7, 8, 8, 9, 9, 90, 23, 5, 6, 7, 8, 8, 89, 9};
        System.out.println(a.length);
        //相当于
        int a1[] = new int[19];
        a1[0] = 2;
        a1[1] = 3;
        a1[2] = 4;

    }
}
